<?php

declare (strict_types=1);

namespace app\store\model\agent;

use think\model\relation\HasOne;
use app\common\model\agent\MoneyLog as MoneyLogModel;
use app\store\model\User;

/**
 * 推广员管理模型类
 * Class User
 * @package app\common\model
 */
class MoneyLog extends MoneyLogModel
{

    /**用户
     * @return HasOne
     */
    public function user():HasOne
    {
        return $this->hasOne(User::class,'user_id','agent_user_id');
    }



}
